using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Ecan.Crypt;

namespace EcanSecurity
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text = EcanCryptography.simple_Encode(textBox1.Text);
            textBox3.Text = EcanCryptography.simple_Decode(textBox2.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox5.Text = EcanCryptography.symmetry_Encode(textBox6.Text,"12345678");
            textBox4.Text = EcanCryptography.symmetry_Decode(textBox5.Text, "12345678");
        }
    }
}